<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>
        console.log(1 + 1);2
        console.log(1 - 1);0
        console.log(1 * 1);1
        console.log(1 / 1);1
        // 1.%取余（取模）
        console.log(4 % 2);0
        console.log(5 % 3);2
        // 浮点数 算数运算中会出现问题
        console.log(0.1+0.2);
        console.log(0.07*100);//7.0000000001
        // 我们不能直接拿浮点数来进行比较是否相
        var num=0.1+0.2;
        console.log(num==0.3);//flase
    </script>
</head>

<body>

</body>

</html>